

#include <iostream>
using namespace std;


void CSwap( int* x, int* y ) {
	int z = (*x);
	(*x) = (*y);
	(*y) = z;
}

void CppSwap( int& x, int& y ) {
	int z = x;
	x = y;
	y = z;
}

void Print( const int& x ) {
	cout << "x = " << x << endl;
}

int main( void ) {
	int a = 10;
	int b = 20;
	CSwap( &a, &b );
	CppSwap( a, b );

	cout << "a = " << a << "\n" << "b = " << b << endl;
	
	Print( 100 ); // right value can be used in this way only when the key word const embellish

	return 0;
}


